package com.suntek.svn.service;

import org.tmatesoft.svn.cli.svnlook.SVNLookTreeCommand;
import org.tmatesoft.svn.core.SVNException;
import org.tmatesoft.svn.core.wc.admin.SVNAdminPath;

public class SvnLookTreeHandler extends SVNLookTreeCommand {

	public void handlePath(SVNAdminPath adminPath) throws SVNException {
		if (adminPath != null) {
			String path = adminPath.getPath();
			if (adminPath.isDir()) {
				System.out.println("DIR: " + path + "[reversion: "
						+ adminPath.getRevision() + "]");
			} else {
				System.out.println("FILE: " + path + "[reversion: "
						+ adminPath.getRevision() + "]");
			}

		}
	}

}
